package com.zhangtingshu.service.impl;

import com.zhangtingshu.dao.RoleDao;
import com.zhangtingshu.pojo.Role;
import com.zhangtingshu.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public List<Role> findAll() {
        return roleDao.findAll();
    }
}
